package com.rj.core.algorithm;

/**
 * 哈希算法枚举
 */
public enum HashAlgorithm {
    /**
     * SHA-256
     */
    SHA256("SHA-256", 32),
    /**
     * SHA-512
     */
    SHA512("SHA-512", 64),
    /**
     * SM3
     */
    SM3("SM3", 32),
    /**
     * MD5
     */
    MD5("MD5", 16);


    public final String algorithm;
    public final int length;
    HashAlgorithm(String algorithm, int length) {
        this.algorithm = algorithm;
        this.length = length;
    }

}